package cn.nbt.busManage.model.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;

/**
 * {@code @Author} lyq
 * {@code @Date} 6/11/2024 5:04 PM
 */

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "point")
@NamedQueries({
    @NamedQuery(name = "Point.findByName",
        query = "SELECT p FROM Point p WHERE p.pointName = :query")
})
public class Point extends BaseEntity{
    @Column(name = "point_name")
    private String pointName;
    @Column(name = "latitude_longitude")
    private String latitudeLongitude;
}
